package com.atlbb.mybatis.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author LiangQingBin
 * @version 1.00
 * @ClassName User
 * @Description TODO
 * @time 2021/11/7 14:39
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    private Integer id;
    private String name;
    //格式化日期格式
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date bir;
    private String sex;
    private String address;
}
